package gs.sr.tkfxz.shared;

import java.lang.reflect.InvocationTargetException;
import java.util.Map;

import org.apache.commons.beanutils.BeanUtils;

public class TopReqParam {
	private String top_appkey;
	private String top_parameters;
	private String top_session;
	private String timestamp;
	private String sign;
	private String type;
	private String top_sign;

	/**
	 * convert http request to internal bean
	 * 
	 * @author <a href="mailto:zhenbei@taobao.com">震北</a>
	 * @since 2012-1-18 下午2:31:39
	 * 
	 * @param parameterMap
	 * @return
	 * @throws IllegalAccessException
	 * @throws InvocationTargetException
	 */
	public static final TopReqParam parseReqParam(
			Map<String, String> parameterMap) throws IllegalAccessException,
			InvocationTargetException {
		TopReqParam resp = new TopReqParam();
		BeanUtils.populate(resp, parameterMap);
		return resp;
	}

	public String getTop_appkey() {
		return top_appkey;
	}

	public void setTop_appkey(String top_appkey) {
		this.top_appkey = top_appkey;
	}

	public String getTop_parameters() {
		return top_parameters;
	}

	public void setTop_parameters(String top_parameters) {
		this.top_parameters = top_parameters;
	}

	public String getTop_session() {
		return top_session;
	}

	public void setTop_session(String top_session) {
		this.top_session = top_session;
	}

	public String getTimestamp() {
		return timestamp;
	}

	public void setTimestamp(String timestamp) {
		this.timestamp = timestamp;
	}

	public String getSign() {
		return sign;
	}

	public void setSign(String sign) {
		this.sign = sign;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getTop_sign() {
		return top_sign;
	}

	public void setTop_sign(String top_sign) {
		this.top_sign = top_sign;
	}
}
